const dbutil = require('../../../libs/MyDB');

module.exports = {
    getFoodInfo: async function () {
        let foods = [];
        await dbutil.multiSelect('res_foodinfo', '*')
            .then(
                result => {
                    foods = result;
                }
            )
        return {
            code: 0,
            msg: "查询成功",
            data: foods,
            count: foods.length,
        }
    }
}